<template>
	<navigator  class="item">
		<u-image class="u-skeleton-rect" width="100%" height="350rpx" 
		:src="item.cover_url" :fade="true"></u-image>
		<view class="title u-line-1 u-m-t-20 u-m-b-20 u-font-lg u-skeleton-rect">{{item.title?item.title:"商品名"}}</view>
		<view class="u-flex u-row-between">
			<view class="price u-skeleton-rect">&yen;{{item.price}}</view>
			<view class="sale u-skeleton-rect">销量:{{item.sales}}</view>
		</view>
	</navigator>
</template>

<script>
	export default {
		name:"goods-card",
		props:{
			item:{
				type:[Object,Number],
				default:{}
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss" scoped>
.item{
	margin-top:30rpx;
	box-shadow: 0 12rpx 20rpx 0 rgba(0,0,0,0.1);
	padding:20rpx;
	
	.title{
		width: 100%;
	}
	.price{
		color: red;
		width: 40%;
	}
	.sale{
		color: #C0C4CC;
		width: 40%;
	}
	}
</style>
